package org.flower.dao.impl;

import org.flower.dao.OrderDetailsDao;
import org.flower.entity.OrderDetails;
import org.flower.utils.BaseDao;
//订单详情接口实现
public class OrderDetailsDaoImpl extends BaseDao implements OrderDetailsDao {
    @Override
    public boolean addOrderDetails(OrderDetails od) {
        String sql = "insert into orderdetails values(null,?,?,?,?)";
        return super.executeUpdate(sql,od.getComdetailsId(),od.getOrderId(),od.getNum(),od.getTotalPrice());
    }
}
